.dialog {
  position: fixed;
  z-index: 99999;
  height: max(70%, 500px);
  width: 400px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #f8f8f8;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.dialog *::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.dialog *::-webkit-scrollbar-thumb {
  border-radius: 5px;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.1);
  background-clip: content-box;
}

.close {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-100%, -100%);
  height: 24px;
  width: 24px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: none;
  transition: transform .2s ease;
}

.close img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.close:hover {
  transform: translate(-100%, -100%) scale(1.3);
}

.close:active {
  transform: translate(-100%, -100%) scale(1.1);
}

.header {
  flex: none;
  border-bottom: 1px solid rgb(235, 235, 235);
  padding: 10px;
}

.content {
  flex: auto;
  min-height: 0;
  border-bottom: 1px solid rgb(235, 235, 235);
  overflow: auto;
  font-size: 14px;
}

.footer {
  flex: none;
  margin: 20px;
  border-radius: 8px;
  border: 2px solid #d5d5d5;
  overflow: hidden;
  position: relative;
}

.footer form {
  width: 100%;
  display: flex;
}

.textarea {
  flex: auto;
  min-width: 0;
  border: none;
  outline: none;
  padding: 8px;
  background: none;
  resize: none;
  margin-right: 35px;
}

.send {
  height: 24px;
  width: 24px;
  padding: 0;
  position: absolute;
  right: 6px;
  bottom: 6px;
  flex: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.send img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}